package com.ws.shop.dao;

import java.sql.SQLException;
import java.util.List;

import com.ws.shop.bean.Page;
import com.ws.shop.entity.Accessory;
import com.ws.shop.entity.Sunpic;

public interface SunpicDao {

	public List<Object> sunpics(final int state , final int limit) throws SQLException;
	public Page sunpicsPage(final int pageno,int pagesize,final int state);
	public Page findListByPage(int pageno, int pagesize, String name, long aid,
			String start, String end);
	public void getFreeBack(final Page page,final long uid);
	public int saveSunpic(final long uid,final long id,final int state,final String word,final String[] links);
	public List<Object> sunpics(final int state ,final long uid, final int limit) throws SQLException;
	
	public Sunpic sunpics(final int state ,final long id);
	
	public  List<Sunpic>  getSunpicByUidAndOid(final long uid,final long oid);
	public Sunpic findSunpicByAid(long aid);
	public List<Accessory> findAccessoryListBySunpicId(long id);
}
